package com.mes.biz.mapper;

import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.mes.biz.domain.BizCustomer;

import java.util.List;

/**
 * 客户档案Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-04-30
 */
public interface BizCustomerMapper extends BaseMapper<BizCustomer>
{

    /**
     * 批量删除客户档案
     * @param ids 需要删除的客户档案ID集合
     * @return
     */
    public int deleteBizCustomerByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);


    public List<String> getUserIdByIds(@Param("ids") String[] ids);


    public BizCustomer getCustomerByUserId(@Param("userId") String userId);


    public long checkInDetailByCustomerId(@Param("customerId") String customerId);


}
